package com.bc.trade.channel;


import com.bc.trade.channel.buzi.BuziChannel;
import com.bc.trade.channel.gzdcdata.GzdcdataChannel;
import com.bc.trade.channel.hicard.HicardChannel;
import com.bc.trade.channel.jwwxpay.JWWxPayChannel;
import com.bc.trade.channel.kingpay.KingpayChannel;
import com.bc.trade.channel.ntlmh.NtlmhChannel;
import com.bc.trade.channel.orangepay.OrangePayChannel;
import com.bc.trade.channel.suning.SuningChannel;
import com.bc.trade.channel.transferqrcode.TransferQrcodeChannel;
import com.bc.trade.channel.wmyl.WmylChannel;
import com.bc.trade.channel.yufu.YFChannel;

public class ChannelFactory {
	
	public static IChannel get(String channelCode) {
		switch (channelCode) {
		case "suning":
			return new SuningChannel();
		case "kingpay":
			return new KingpayChannel();
		case "gzdcdata":
			return new GzdcdataChannel();
		case "ntlmh":
			return new NtlmhChannel();
		case "YFKKR":
		case "YFZZ":
		case "YFJN":
			return new YFChannel();
		case "OPHM":
		case "OPCX":
			return new OrangePayChannel();
		case "WMYL" :
			return new WmylChannel();
		case "TFQC" :
			return new TransferQrcodeChannel();
		case "BUZI" :
			return new BuziChannel();
		case "hicardpay":
			return new HicardChannel();
		case "wxgipay":
			return new JWWxPayChannel();
		default:
			return null;
		}
	}

}
